/* deck-shop.css */
body {
    background-image: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-1.2.1&auto=format&fit=crop&w=1351&q=80');
}

.category-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.card-scroll-container {
    overflow-x: auto;
    padding-bottom: 15px;
}

.card-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.card-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.card-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 4px;
}

.card-list {
    display: flex;
    gap: 20px;
    padding: 5px;
    min-width: max-content;
}

.card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    width: 240px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
    padding: 15px;
}

.card-name {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9em;
}

.stat span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.stat span:last-child {
    font-weight: bold;
    color: #fff;
}

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.price {
    font-weight: bold;
    font-size: 1.1em;
    color: #ffd700;
}

.price.insufficient {
    color: #ff6b6b;
}

.buy-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buy-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
}

.buy-button:active:not(:disabled) {
    transform: translateY(0);
}

.buy-button:disabled {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .container {
        padding: 80px 15px 30px;
    }

    .category {
        padding: 15px;
    }

    .card {
        min-width: 200px;
    }

    .card-image {
        height: 140px;
    }

    .back-button, .money-display h2 {
        font-size: 14px;
    }
}